<{assign var="seo_sub_title" value="口碑点评"}>
<{include file="$skin_theme/block/header.html"}>
<!--装修公司头部结束-->
<div class="subwd">
    <{include file="company/block/info.html"}>
	<div class="mb20 company_rt rt  ">
		<div class="pding mb10 area">
			<h3 class="sub_com_title"><b>业主评价</b></h3>
			<div class="new_pinglun disigner_pinglun ">
				<ul>
                    <{foreach $items as $item}>
					<li>
						<div class="lt"><p><img src="<{$pager.img}>/<{$member_list[$item.uid].face_80}>"/></p><p><{$member_list[$item.uid].uname}></p></div>
						<div class="rt">
							<p class="graycl"><span class="lt"><{foreach $CONFIG.score.company as $k=>$v}><{if $v}><{$v}>:<{$item[$k]}>  <{/if}><{/foreach}></span> <span class="rt time"><{$item.dateline|format}></span></p>
                            <{if $item.audit}><p><{$item.content}></p><{else}><p class="tips"><span class="lock">内容还在审核中</span></p><{/if}>
                            <{if $item.replytime && $item.reply}>
							<p class="huifu">回复：<{$item.reply}></p>
                            <{/if}>
						</div>
					</li>
                    <{/foreach}>
				</ul>
            </div>
			<{if $pager.pagebar}><div class="page hoverno"><{$pager.pagebar}></div><{/if}>
		</div>
		<h3>我要评价</h3>
		<div class="pingjia_box pding">
            <form action="<{link ctl='company:savecomment' http="ajax"}>" mini-form="comment" method="post" class="sub_com_pinglun pinglun">
            <input type="hidden" name="company_id" value="<{$company.company_id}>" />
            <{foreach $CONFIG.score.company as $k=>$v}>
            <{if $v}>
            <span  class="pf"><{$v}>：<input type="hidden" name="data[<{$k}>]" id="comment-<{$k}>" value="3" /><b comment-score="<{$k}>" data-score="3"></b></span>
            <{/if}>
            <{/foreach}>
            <table>
                <tr>
                    <td>评价内容：</td>
                    <td>
                        <textarea name="data[content]" class="text full" placeholder="您的评论..."></textarea><br />
                        <p>写点评吧，您的评价内容对您的售后服务质量有重要监督作用，对其他用户具有重要参考价值</p>
                    </td>
                </tr>
               
                <tr><td colspan="2">
                
                  <{if $CONFIG.access.verifycode.comment}>
                    验证码：
                            <input style="margin-left:30px;" class="text short" type="text" name="verifycode" placeholder="请输入验证码"/>
                            <img verify="#pass-verify" src="<{link ctl='magic:verify' http='ajax'}>&_=<{$pager.dateline}>" id="pass-verify"/>
                        
                <{/if}><input type="submit" value="发表评论" class="text btn rt pinglun_btn" />
                </td></tr>							
            </table>
            </form>
        </div>
	</div>
	<div class="cl"></div>
</div>
<!--底边内容开始-->
<script type="text/javascript" src="<{$pager.res}>/script/raty/jquery.raty.js"></script>
<script type="text/javascript">
(function(K, $){
    $('b[comment-score]').raty({
        path: "<{$pager.res}>/script/raty/img/",
        score: function() {return $(this).attr('data-score');},
        hints: ["差","还行","好","很好","非常好"],
        click: function(score, evt) {$("#comment-"+$(this).attr("comment-score")).val(score);}
    });
    $('b[score]').each(function(){$(this).raty({numberMax:5,readOnly: true,hints: ["差","还行","好","很好","非常好"],path:"<{$pager.res}>/script/raty/img/",score: function() {return $(this).attr('data-score');}})});

})(window.KT, window.jQuery);
</script>
 	<script>
	$("[verify]").click(function(){
		$($(this).attr("verify")).attr("src", "<{link ctl='magic:verify' http='ajax'}>&_"+Math.random());
	});
	</script>
<{include file="company/block/footer.html"}>
